<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AlterTableAddColumnkindSubsidyAmountAndOperateSubsidyAmountToUserContract extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_user_contract', function (Blueprint $table) {
            $table->unsignedBigInteger('kindSubsidyAmount')->default(0)->comment('实物补贴金额')->after("contractExtNo");
            $table->unsignedBigInteger('operateSubsidyAmount')->default(0)->comment('运营补贴金额')->after("contractExtNo");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_user_contract', function (Blueprint $table) {
            $table->dropColumn('kindSubsidyAmount');
            $table->dropColumn('operateSubsidyAmount');
        });
    }
}
